package fuckTest;

import java.util.ArrayList;
import java.util.List;
import java.util.Stack;

public class Demo6 {

    public static void main(String[] args) {
        try {
            tryd();
        } catch (TestException e) {
            System.out.println("catch it");
        }
    }

    public static void tryd() throws TestException {
        System.out.println("start");
        if (true)
            throw new TestException("ad");
        System.out.println("end");
    }


}
class TestException extends RuntimeException {

    private String info;

    public TestException() {
    }

    public TestException(String info) {
        this.info = info;
    }



}
